#!/usr/bin/env python
# -*- coding: utf-8 -*-
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# 
# Author: zod.yslin
# Email: 
# File Name: int.py
# Description: 
#   int([number | string[, base]])  轉換數字或字串為整數，如果是字串，需提供進位的基數
# Edit History: 
#   2011-09-08    File created.
#===============================================================================
print(int("101", 16))
print(int("101", 10))
print(int("101", 8))
print(int("101", 2))
print(int(22.01))
print(int(32.56))
print(int(float("11.0")))
print(int(float("36.9")))
print(int(float("33.4")))
